<style>
	.layui-form-label {
		width: 90px;
	}
	
	.layui-input-block{
		line-height: 36px;
	}
</style>
<!--页面主要内容-->
<main class="lyear-layout-content">

	<div class="container-fluid p-t-15">

		<div class="row">

			<div class="col-lg-12">
				<div class="card">

					<div class="card-toolbar d-flex flex-column flex-md-row">
						<div class="toolbar-btn-action">

							<a class="btn btn-primary" href="{:url('admin/order/order')}"><i
									class="mdi mdi-check m-r-5"></i>返回</a>

						</div>

					</div>

					<ul class="nav nav-tabs page-tabs pt-2 pl-3 pr-3">
						<li class="nav-item"> <a class="nav-link active" style="cursor: pointer;">评价详情</a> </li>
					</ul>
					<div class="tab-content">
						<div class="tab-pane active">

							<div class="layui-form-item">
								<label class="layui-form-label">评价人</label>
								<div class="layui-input-block">
									<input type="text" disabled value="{$User['nickname']}" class="layui-input">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">购买商品</label>
								<div class="layui-input-block">
									<input type="text" disabled value="{$productStr}" class="layui-input">
								</div>
							</div>

							
							{foreach $productImgArr as $key => $item}
							{foreach $item as $val}
							<div class="layui-form-item">
								<label class="layui-form-label">商品图片</label>
								<div class="layui-input-block">
									<img src="{$val}" alt="" height="200">
								</div>
							</div>
							{/foreach}
							{/foreach}
							
							
							<div class="layui-form-item">
								<label class="layui-form-label">订单总价</label>
								<div class="layui-input-block">
									<input type="text" disabled value="{$Order['total']}" class="layui-input">
								</div>
							</div>
							
							<div class="layui-form-item">
								<label class="layui-form-label">评论分数</label>
							{if condition="$Porduct['rate']"}
							<div class="layui-input-block">
								<?php for($num = 1; $num <= $Porduct['rate']; $num++){ ?>
									<i style="color: red;" class="layui-icon layui-icon-star-fill">&#xe658;</i> 
								<?php } ?>
							</div>
							{else/}
							<div class="layui-input-block">
								<span style="color: red;">暂无评分</span>
							</div>
							{/if}
						    </div>
							
							<div class="layui-form-item">
								<label class="layui-form-label">评论内容</label>
								{if condition="$comment"}
								<div class="layui-input-block">
									<input type="text" disabled value="{$comment}" class="layui-input">
								</div>
								{else/}
								<div class="layui-input-block" style="color: red;">
									暂无评论内容
								</div>
								{/if}
							</div>
							
							{if condition="$Porduct['proimg_cdn'] == []"}
								<div class="layui-form-item">
									<label class="layui-form-label">评论图片</label>
									<div class="layui-input-block" style="color: red;">
										暂无评论图片
									</div>
								</div>
							{else/}
							<div class="layui-form-item">
								<label class="layui-form-label">评论图片</label>
								<div class="layui-input-block" style="display: flex;">
								{foreach $Porduct['proimg_cdn'] as $item}
										<img src="{$item}" alt="" height="200" style="margin: 0px 5px;">
								{/foreach}
								</div>
							</div>
							{/if}

						</div>
					</div>

				</div>
			</div>

		</div>

	</div>

</main>

